// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.Ml
{
	public sealed partial class AnalysisConfigRead
	{
		[JsonInclude]
		[JsonPropertyName("bucket_span")]
		public Elastic.Clients.Elasticsearch.Duration BucketSpan { get; init; }

		[JsonInclude]
		[JsonPropertyName("categorization_analyzer")]
		public Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? CategorizationAnalyzer { get; init; }

		[JsonInclude]
		[JsonPropertyName("categorization_field_name")]
		public string? CategorizationFieldName { get; init; }

		[JsonInclude]
		[JsonPropertyName("categorization_filters")]
		public IReadOnlyCollection<string>? CategorizationFilters { get; init; }

		[JsonInclude]
		[JsonPropertyName("detectors")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Ml.DetectorRead> Detectors { get; init; }

		[JsonInclude]
		[JsonPropertyName("influencers")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Field> Influencers { get; init; }

		[JsonInclude]
		[JsonPropertyName("latency")]
		public Elastic.Clients.Elasticsearch.Duration? Latency { get; init; }

		[JsonInclude]
		[JsonPropertyName("model_prune_window")]
		public Elastic.Clients.Elasticsearch.Duration? ModelPruneWindow { get; init; }

		[JsonInclude]
		[JsonPropertyName("multivariate_by_fields")]
		public bool? MultivariateByFields { get; init; }

		[JsonInclude]
		[JsonPropertyName("per_partition_categorization")]
		public Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorization { get; init; }

		[JsonInclude]
		[JsonPropertyName("summary_count_field_name")]
		public string? SummaryCountFieldName { get; init; }
	}
}